Search results

20 packages found

Throw an error (and allow to stop flow) if an async function takes more than a set duration

published 1.1.2 2 months ago
M
Q
P

Set of methods allowing simplify work with promises in cycle such as: forEach, map, find, filter, reduce, while, transform. Besides there are methods for comfortable work with promises or asynchronous operations - all, retry, timeout.

published 3.2.0 8 months ago
M
Q
P

Simple date parse util, throws error or returns null if date is invalid

published 1.1.0 8 years ago
M
Q
P

An accumulator for only errors that tries to interrupt and throw an error if the storage is not empty.

published 0.1.0 4 years ago
M
Q
P

Conditional promise catch handler

published 3.0.0 3 years ago
M
Q
P

If X, return Y, else throw Z.

published 2.0.0 6 years ago
M
Q
P

Enforce required parameters or options in ES6.

published 1.1.0 7 years ago
M
Q
P

Assert a given string is a valid Github issue label name

published 1.0.0 7 years ago
M
Q
P

Util to throw error if truthy is given

published 1.0.0 7 years ago
M
Q
P

Throws something if it’s an Error; otherwise returns it.

published 1.0.0 6 years ago
M
Q
P

Throw TypeError if not a value is array-like. The undefined value always evaluates to true.

published 1.0.1 2 years ago
M
Q
P

If error throw fook

published 1.0.0 7 years ago
M
Q
P

Throw if environment variable cannot be taken.

published 1.0.1 4 years ago
M
Q
P

Ensure environment variable exists. If not, throw to fail early.

published 1.0.2 4 years ago
M
Q
P

An assertion method to check if a sync or async function throws and assert on error properties.

published 3.3.0 5 years ago
M
Q
P

Function that returns a boolean indicating whether an exception was thrown or not

published 0.0.3 2 years ago
M
Q
P

Ensure environment variable exists and convert to a number. If not, throw to fail early.

published 1.0.0 4 years ago
M
Q
P

Throw if a document cannot be found

published 0.1.0 6 years ago
M
Q
P

Replace in string pattern by variables. Throw error if variables is not string or number.

published 0.0.1 8 years ago
M
Q
P

Get one or multiple environment variable or throw an error if undefined.

published 0.0.1-alpha1 6 years ago
M
Q
P